import React, {PureComponent} from 'react';
import { withRouter } from "../hoc";

class Detail extends PureComponent {
    render() {
      const { router } = this.props;
      const { params } = router;
      return (
            <div>
                <h2>Detail</h2>
                <h2>id: {params.id}</h2>
            </div>
        );
    }
}

export default withRouter(Detail);